﻿//using Microsoft.AspNetCore.Authorization;
//using Microsoft.AspNetCore.Http;
//using Microsoft.AspNetCore.Mvc;
//using Microsoft.EntityFrameworkCore.Metadata.Internal;
//using Quartz.Xml.JobSchedulingData20;

//namespace Simple.WebApi.Controllers.System;

///// <summary>
///// Sql
///// </summary>
//[Route("QHSESql/[action]")]
//[ApiController]
//public class QHSESqlController : ControllerBase
//{
//    private readonly QHSESqlService _qHSESqlService;

//    public QHSESqlController(QHSESqlService qHSESqlService)
//    {
//        _qHSESqlService = qHSESqlService;
//    }

//    [HttpPost]
//    [ValidateTimestampAndSignature]
//    public async Task<AppResult> ExecuteInsert([FromBody] IdInputModel model)
//    {
//        var data = await _qHSESqlService.ExecuteInsertAsync(model.Id);
//        return AppResult.Status200OK(data: data);
//    }
//    [HttpPost]
//    [ValidateTimestampAndSignature]
//    public async Task<AppResult> ExecuteSelectDanger([FromBody]IdInputModel model)
//    {
//        var data = await _qHSESqlService.ExecuteSelectAsync<QHSESysDanger>(model.Id);
//        return AppResult.Status200OK(data: data);
//    }
//    [HttpPost]
//    [ValidateTimestampAndSignature]
//    public async Task<AppResult> ExecuteSelectViolation([FromBody] IdInputModel model)
//    {
//        var data = await _qHSESqlService.ExecuteSelectAsync<QHSESysXyViolation>(model.Id);
//        return AppResult.Status200OK(data: data);
//    }
//    [HttpPost]
//    [ValidateTimestampAndSignature]
//    public async Task<AppResult> ExecuteSelectDictionary([FromBody] IdInputModel model)
//    {
//        var data = await _qHSESqlService.ExecuteSelectAsync<QHSESysDictionary>(model.Id);
//        return AppResult.Status200OK(data: data);
//    }
//    [HttpPost]
//    [ValidateTimestampAndSignature]
//    public async Task<AppResult> ExecuteSelectHse([FromBody] IdInputModel model)
//    {
//        var data = await _qHSESqlService.ExecuteSelectAsync<QHSESysViolationCategoryHSE>(model.Id);
//        return AppResult.Status200OK(data: data);
//    }
//    [HttpPost]
//    [ValidateTimestampAndSignature]
//    public async Task<AppResult> ExecuteSelectObs([FromBody] IdInputModel model)
//    {
//        var data = await _qHSESqlService.ExecuteSelectAsync<QHSESysViolationCategoryObs>(model.Id);
//        return AppResult.Status200OK(data: data);
//    }
//}
